package bjut.zrpc.test.impl;

import bjut.zrpc.core.optimization.annotation.ZRpcService;
import interfaces.PeopleService;
import lombok.SneakyThrows;


/**
 * @Author: zhuzhiming
 * @Date: 2022/6/22 20:36
 */
@ZRpcService(group = "zhuzhiming-userinfo", concurrencyControl = true, concurrency = 1, timeout = 2000)
public class PeopleServiceImpl implements PeopleService {
    @Override
    public void register() {

    }


    @Override
    public String userInfo(String username, int age) {
        //Thread.sleep(1000);
        return "username02: " + username + "  age:  " + age;
    }
}
